package com.bestsoft.quartz.task;

import com.bestsoft.baseinfo.domain.BaseInfoClient;
import com.bestsoft.baseinfo.domain.BaseInfoGoods;
import com.bestsoft.baseinfo.domain.BaseInfoSupply;
import com.bestsoft.flow.domain.*;
import com.bestsoft.flow.service.FlowDataTransService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @version 1.0
 * @Description: TODO
 * @Author cuijian
 * @Date 2023/7/24 15:59
 **/

@Component("flowDataTransTask")
public class FlowDataTransTask {
    @Autowired
    private FlowDataTransService flowDataTransService;

    /**
     * 商品资料同步
     */
    public void baseInfoGoodsTrans(){
        BaseInfoGoods baseInfoGoods = new BaseInfoGoods();
        System.out.println(flowDataTransService.BaseInfoGoodsTransList(baseInfoGoods));
    }

    /**
     * 客户资料同步
     */
    public void baseInfoClientTrans(){
        BaseInfoClient baseInfoClient = new BaseInfoClient();
        System.out.println(flowDataTransService.BaseInfoClientTransList(baseInfoClient));
    }

    /**
     * 供应商资料同步
     */
    public void baseInfoSupplyTrans(){
        BaseInfoSupply baseInfoSupply = new BaseInfoSupply();
        System.out.println(flowDataTransService.BaseInfoSupplyTransList(baseInfoSupply));
    }

    /**
     * 供应商流向同步(批发)
     */
    public void flowGyslxPfTrans(){
        FlowGyslxPf flowGyslxPf = new FlowGyslxPf();
        System.out.println(flowDataTransService.flowGyslxPfTransList(flowGyslxPf));
    }
    /**
     * 供应商流向同步(连锁)
     */
    public void flowGyslxLsTrans(){
        FlowGyslxLs flowGyslxLs = new FlowGyslxLs();
        System.out.println(flowDataTransService.flowGyslxLsTransList(flowGyslxLs));
    }
    /**
     * 库存同步
     */
    public void flowBalanceTrans(){
        FlowKcjc flowKcjc = new FlowKcjc();
        System.out.println(flowDataTransService.flowBalanceTransList(flowKcjc));
    }

    public void htxsmlTrans(){
        Htxsml htxsml = new Htxsml();
        System.out.println(flowDataTransService.htxsmlTransList(htxsml));
    }
}
